package com.hbnu.service.impl;

import com.hbnu.anno.Log;
import com.hbnu.domain.User;
import com.hbnu.mapper.UserMapper;
import com.hbnu.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @version: 1.0
 * @ClassName: UserService
 * @Description: TODO
 * @Author: 86132
 * @Date: 2025/11/4 22:19
 */
@Service("userService")
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    @Log
    public List<User> findAll() {
        return userMapper.findAll();
    }

    @Override
    @Log
    public void insert(User user) {
        userMapper.insert(user);
    }
}
